package com.grgbanking.it.project.entity;

import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.grgbanking.it.system.entity.GrgemEquipments;

/**
 * OperationWork entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "operation_work", catalog = "it_system")
public class OperationWork implements java.io.Serializable {

	// Fields

	private Integer id;
	private String username;
	private String trueName;
	private String departmentId;
	private String departmentName;
	private String workOrigin;
	private String phone;
	private String email;
	private Integer isEmail;
	private String workType;
	private String hitchBigType;
	private String hitchType;
	private String describe;
	private Integer grade;
	private String feedback;
	private Integer feedbackGrade;
	private Integer state;
	private String device;
	private String deviceConfigure;
	private String startTime;
	private String endTime;
	private String handlers;
	private String creator;
	private String deviceType;
	private String picUrl;
	private String workNo;
	private Integer msgType;
	private GrgemEquipments equipment;
	/**
	 * 以下字段用于查询条件
	 */
	private String[] workOrigins;
	private Integer[] states;
	private String startDate;
	private String endDate;
	
	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "username", length = 45)
	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	@Column(name = "trueName", length = 45)
	public String getTrueName() {
		return this.trueName;
	}

	public void setTrueName(String trueName) {
		this.trueName = trueName;
	}

	@Column(name = "departmentId", length = 45)
	public String getDepartmentId() {
		return this.departmentId;
	}

	public void setDepartmentId(String departmentId) {
		this.departmentId = departmentId;
	}

	@Column(name = "departmentName", length = 45)
	public String getDepartmentName() {
		return this.departmentName;
	}

	public void setDepartmentName(String departmentName) {
		this.departmentName = departmentName;
	}

	@Column(name = "workOrigin", length = 45)
	public String getWorkOrigin() {
		return this.workOrigin;
	}

	public void setWorkOrigin(String workOrigin) {
		this.workOrigin = workOrigin;
	}

	@Column(name = "phone", length = 45)
	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	@Column(name = "email", length = 45)
	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(name = "isEmail")
	public Integer getIsEmail() {
		return this.isEmail;
	}

	public void setIsEmail(Integer isEmail) {
		this.isEmail = isEmail;
	}

	@Column(name = "workType", length = 45)
	public String getWorkType() {
		return this.workType;
	}

	public void setWorkType(String workType) {
		this.workType = workType;
	}

	@Column(name = "hitchBigType", length = 45)
	public String getHitchBigType() {
		return this.hitchBigType;
	}

	public void setHitchBigType(String hitchBigType) {
		this.hitchBigType = hitchBigType;
	}

	@Column(name = "hitchType", length = 45)
	public String getHitchType() {
		return this.hitchType;
	}

	public void setHitchType(String hitchType) {
		this.hitchType = hitchType;
	}

	@Column(name = "describe_")
	public String getDescribe() {
		return this.describe;
	}

	public void setDescribe(String describe) {
		this.describe = describe;
	}

	@Column(name = "grade_")
	public Integer getGrade() {
		return this.grade;
	}

	public void setGrade(Integer grade) {
		this.grade = grade;
	}

	@Column(name = "feedback", length = 450)
	public String getFeedback() {
		return this.feedback;
	}

	public void setFeedback(String feedback) {
		this.feedback = feedback;
	}

	@Column(name = "feedbackGrade")
	public Integer getFeedbackGrade() {
		return this.feedbackGrade;
	}

	public void setFeedbackGrade(Integer feedbackGrade) {
		this.feedbackGrade = feedbackGrade;
	}

	@Column(name = "state")
	public Integer getState() {
		return this.state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	@Column(name = "device", length = 100)
	public String getDevice() {
		return this.device;
	}

	public void setDevice(String device) {
		this.device = device;
	}

	@Column(name = "deviceConfigure", length = 65535)
	public String getDeviceConfigure() {
		return this.deviceConfigure;
	}

	public void setDeviceConfigure(String deviceConfigure) {
		this.deviceConfigure = deviceConfigure;
	}

	@Column(name = "startTime", length = 45)
	public String getStartTime() {
		return this.startTime;
	}

	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}

	@Column(name = "endTime", length = 45)
	public String getEndTime() {
		return this.endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}
	
	@Column(name = "handlers", length = 450)
	public String getHandlers() {
		return handlers;
	}

	public void setHandlers(String handlers) {
		this.handlers = handlers;
	}

	@Column(name = "creator", length = 45)
	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	@Column(name = "msgType")
	public Integer getMsgType() {
		return msgType;
	}

	public void setMsgType(Integer msgType) {
		this.msgType = msgType;
	}

	@Column(name = "deviceType", length = 45)
	public String getDeviceType() {
		return deviceType;
	}

	public void setDeviceType(String deviceType) {
		this.deviceType = deviceType;
	}
	
	@Column(name = "picUrl", length = 1000)
	public String getPicUrl() {
		return picUrl;
	}

	public void setPicUrl(String picUrl) {
		this.picUrl = picUrl;
	}
	
	@Column(name = "workNo", length = 45)
	public String getWorkNo() {
		return workNo;
	}

	public void setWorkNo(String workNo) {
		this.workNo = workNo;
	}

	@Transient
	public GrgemEquipments getEquipment() {
		return equipment;
	}

	public void setEquipment(GrgemEquipments equipment) {
		this.equipment = equipment;
	}

	@Transient
	public String[] getWorkOrigins() {
		return workOrigins;
	}

	public void setWorkOrigins(String[] workOrigins) {
		this.workOrigins = workOrigins;
	}

	@Transient
	public Integer[] getStates() {
		return states;
	}

	public void setStates(Integer[] states) {
		this.states = states;
	}

	@Transient
	public String getStartDate() {
		return startDate;
	}

	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}

	@Transient
	public String getEndDate() {
		return endDate;
	}

	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}
	
	
	
}